package com.tjw.ec.upms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tjw.ec.common.core.util.PageUtils;
import com.tjw.ec.upms.api.dto.PermitVO;
import com.tjw.ec.upms.api.entity.PermitEntity;

import java.util.List;
import java.util.Map;

/**
 * 由tb_Module与tb_Action两表结合产生的系统基本权限表;
 *
 * @author T-junwen
 * @email t-junwen@foxmail.com
 * @date 2019-07-27 16:43:32
 */
public interface PermitService extends IService<PermitEntity> {

    /**
     * @Title: 默认分页查询
     * @Author: T-junwen
     * @Date: 2019-07-27 16:43:32
     */
    PageUtils<PermitEntity> queryPage(Map<String, Object> params);

    /**
     * @Title: 根据用户编号获取用户权限
     * @Param: [userId]
     * @return: java.util.List<com.tjw.ec.upms.api.dto.PermitVO>
     * @Author: 田俊文
     * @Date: 2019/8/2 15:03
     * @Throws:
     */
    List<PermitVO> getPermitByUserId(String userId);
}

